import {  CreateEventRequest,  EventResponse} from '../../../../mock-server/api/data-contracts'import {  UseMutationResult,  useMutation,  useQueryClient} from '@tanstack/react-query'import { EventsApi } from '@/services/api'import QueryKeys from '@/utils/constants/queryKeys'export default function useCreateEvent(): UseMutationResult<EventResponse, unknown, CreateEventRequest> {  const queryClient = useQueryClient()  return useMutation({    mutationFn: async (form: CreateEventRequest) => {      const response = await EventsApi.createEvent(form)      return response.data    },    onSuccess: async () => {      await queryClient.invalidateQueries({        queryKey: [QueryKeys.Events]      })    }  })}